 
const jwt = require('jsonwebtoken')
const secret = "ultraman" // 密钥
 
const JWT = {
    createToken: (data,time) => { 
        return jwt.sign(data,secret,{expiresIn:time})
    }
}
 
module.exports = JWT